extends Area2D

var spring_speed: int = -1200
var max_spring: int = 1200
func _ready() -> void:
	area_entered.connect(on_area_entered)

func on_area_entered(area_2d):
	var player = get_parent()
	if (abs(player.velocity.y + spring_speed) > max_spring): return
	player.velocity.y += spring_speed
